package com.oocl.model;

import java.util.Date;

public class Customer {
	private String id;
	private String name;
	private String sex;
	private String birthday;
	private String address;
	private String call;
	
	public Customer(){
		
	}

	
	public Customer(String id, String name, String sex) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
	}

	

	public Customer(String id, String name, String sex, String birthday,
			String address, String call) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.birthday = birthday;
		this.address = address;
		this.call = call;
	}


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCall() {
		return call;
	}

	public void setCall(String call) {
		this.call = call;
	}
	
	public int comparTo(Customer o){
		
		return this.getName().compareTo(o.getName());
		
	}
	public String toString(){
//		return this.getId() + ",\t"+ this.getName() + ",\t"+ this.getSex() + ",\t"+ this.getBirthday() + ",\t"+ this.getAddress() + ",\t"+ this.getCall();
		return this.getId() + "\t"+ this.getName() + "\t"+ this.getSex() + "\t"+ this.getBirthday() + "\t"+ this.getAddress() + "\t"+ this.getCall();
	}


	
}	
